/**
 * Created by zhd on 2017/6/23.
 */
var MapLayer = cc.Layer.extend({
    _drawNode: null,
    ctor: function () {
        this._super();
        this.loadInit();
    },

    /**
     * 初始化
     */
    loadInit: function () {
        this._drawNode = new cc.DrawNode();
        this.addChild(this._drawNode);

        for (var i = 0; i < g_levelInfo.maps.length; i++) {
            this._drawNode.drawDot(g_levelInfo.maps[i], 10, cc.color(0, 0, 0, 100));
        }
    }

})